import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { getCurrentUser } from './utils/auth'

// 暴露getCurrentUser方法到window对象便于调试
window._getCurrentUser = getCurrentUser

const app = createApp(App)
app.use(router)

// 暴露app实例到window便于调试
window.app = app

app.mount('#app')